package com.ljs.vuetest.service.impl;

import com.ljs.vuetest.bean.Student;
import com.ljs.vuetest.mapper.StudentMapper;
import com.ljs.vuetest.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class StudentServiceImpl  implements StudentService {
    @Resource
    StudentMapper studentMapper;
    @Override
    public List<Student> selall(int index, int limit) {
        return studentMapper.selall(index,limit);
    }

    @Override
    public List<Student>  selbyname(String name) {
        return studentMapper.selbyname(name);
    }

    @Override
    public boolean add(Student Student) {
        return studentMapper.add(Student);
    }

    @Override
    public Student login(String name, String password) {
        return studentMapper.login(name,password);
    }
}
